package com.gulimall.ware.feign;

import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author mayifan
 * @version 1.0
 * @date 2024-09-09 11:45
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 信息
     *
     * 也可以直接给网关发请求，路径需要带上api
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);

}
